﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Web;
using System.ServiceModel;

namespace Learn.SharePoint.com
{
    [ServiceContract]
    public interface ILastViewedService
    {
        [OperationContract]
        [System.ServiceModel.Web.WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, UriTemplate = "GetLastViewed?ListId={listId}&Ids={ids}")]
        string GetLastViewed(string listId, string ids);

        [OperationContract]
        [System.ServiceModel.Web.WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, UriTemplate = "Refresh?ListId={listId}")]
        bool Refresh(string listId);
    }
}
